package service.entity;

/**
 * Created by asus on 2017/6/22.
 */

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 此DTO作用：
 * 由于数据库中，存储的是商品-仓库的id
 * 而显示时，应该是其对对应的名字
 * 注：此DTO对出库、入库均适用
 */
@Component
public class GoodsStoreDTO {
    private Long id;
    private Long goodsId;
    private String goodsName;
    private Long storeId;
    private String storeName;
    private Integer Quantity;
    private Date Date;

    public GoodsStoreDTO() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer quantity) {
        Quantity = quantity;
    }

    public java.util.Date getDate() {
        return Date;
    }

    public void setDate(java.util.Date date) {
        Date = date;
    }

    @Override
    public String toString() {
        return "GoodsStoreDTO{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", storeId=" + storeId +
                ", storeName='" + storeName + '\'' +
                ", Quantity=" + Quantity +
                ", Date=" + Date +
                '}';
    }
}
